﻿@model StudentInformationManagement.Models.ClassInfo

@{
    ViewBag.Title = "添加班级";
}

<h2>添加班级</h2>

@using (Html.BeginForm("Create", "ClassInfo", FormMethod.Post))
{
    <div class="form-group">
        @Html.LabelFor(model => model.ClassId, htmlAttributes: new { @class = "control-label" })
        @Html.EditorFor(model => model.ClassId, new { htmlAttributes = new { @class = "form-control", required = "required" } })
    </div>
    <div class="form-group">
        @Html.LabelFor(model => model.ClassName, htmlAttributes: new { @class = "control-label" })
        @Html.EditorFor(model => model.ClassName, new { htmlAttributes = new { @class = "form-control", required = "required" } })
    </div>
    <!-- Add other fields as needed -->

    <button type="submit" class="btn btn-default">添加班级</button>
}

<p>
    @Html.ActionLink("返回班级列表", "Index")
</p>
